<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Standings and Team Statistics from the 2007 Baseball Season</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for MLB2007Standings"><tr><td>MLB2007Standings</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Standings and Team Statistics from the 2007 Baseball Season</h2>

<h3>Description</h3>

<p>Data for Major League Baseball teams from the 2007 regular season
</p>


<h3>Format</h3>

<p>A dataset with 30 observations on the following 21 variables.
</p>

<table summary="Rd table">
<tr>
 <td style="text-align: right;">
    <code>Team</code> </td><td style="text-align: left;"> Name of the team</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>League</code> </td><td style="text-align: left;"> League: <code>AL</code> or <code>NL</code></td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Wins</code> </td><td style="text-align: left;"> Number of wins for the season (out of 162 games)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Losses</code> </td><td style="text-align: left;"> Number of losses for the season</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>WinPct</code> </td><td style="text-align: left;"> Proportion of games won (Wins/162)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>BattingAvg</code> </td><td style="text-align: left;"> Team batting average</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Runs</code> </td><td style="text-align: left;"> Number of runs runs scored</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Hits</code> </td><td style="text-align: left;"> Number of hits</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>HR</code> </td><td style="text-align: left;"> Number of home runs hit</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Doubles</code> </td><td style="text-align: left;"> Number of doubles hit</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Triples</code> </td><td style="text-align: left;"> Number of triple hit</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>RBI</code> </td><td style="text-align: left;"> Number of runs batted in</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>SB</code> </td><td style="text-align: left;"> Number of stolen bases</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>OBP</code> </td><td style="text-align: left;"> On base percentage</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>SLG</code> </td><td style="text-align: left;"> Slugging percentage</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>ERA</code> </td><td style="text-align: left;"> Earned run average (earned runs allowed per 9 innings)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>HitsAllowed</code> </td><td style="text-align: left;"> Number of hits against the team</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Walks</code> </td><td style="text-align: left;"> Number of walks allowed</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>StrikeOuts</code> </td><td style="text-align: left;"> Number of strikeouts (by the team's pitchers)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Saves</code> </td><td style="text-align: left;"> Number of games saved (by the team's pitchers)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>WHIP</code> </td><td style="text-align: left;"> Number of walks and hits per inning pitched</td>
</tr>
<tr>
 <td style="text-align: right;">
  </td>
</tr>

</table>



<h3>Details</h3>

<p>Data for all 30 Major League Baseball (MLB) teams for the 2007 regular season.
This includes team batting statistics (BattingAvg through SLG) and team pitching statistics
(ERA through WHIP)
</p>
<p>Updated to MLBStandings2016 in second edition.
</p>


<h3>Source</h3>

<p>Data downloaded from baseball-reference.com:<br />
http://www.baseball-reference.com/leagues/MLB/2007-standings.shtml<br />
http://www.baseball-reference.com/leagues/MLB/2007.shtml
</p>


</body></html>
